<?php
//----------------------------------------------------------------------------//
// File              : V_Tintuc_view										  //
// Modification       :														  //
//----------------------------------------------------------------------------//
// Date(yyyy.mm.dd)   Developer                       Action				  //
//----------------------------------------------------------------------------//
// 2007.03.05         Tran Thanh                     Created				  //
//----------------------------------------------------------------------------//
?>

<?php
function V_TintucView(&$arrayData,$mode="View"){
	$ulr = "?".MODUL."=tintuc&curPg=".CM_getParameter("curPg")."&".ACTION."=";
?>


<?= CM_showError()?>
<?php $id=CM_getParameter("id"); ?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
 <form enctype="multipart/form-data" action="<?=$ulr?>" method="post" name="frm" id="frm">
    <input type="hidden" name="id" value="<?=CM_getParameter("id");?>" />
        <tr>
          <td width="2%" rowspan="3"><?
          if(($arrayData["anh"])!=""){
            echo"
					<table cellSpacing=0 cellPadding=3 border=0 align=left>
					<tr>
						<td>
							<div align=left>".
							"<img name='txtImage' height=250 width=200 id=previewField border=0 
							src=".DIR_UPLOADFILE_IMAGES.$arrayData['anh']." onLoad=\"choseImage('".
									DIR_UPLOADFILE_IMAGES.$arrayData['anh']."')\""." align=left>
						</td>
					</tr>
					<tr>
						<td align=center> <div class='Time'>".$arrayData['image_comment']."</div>	</td>
					</tr>
				</table>
					
				";
          }
?></td>
          <td width="98%" colspan="2"><font size='4' color="#000066">
            &nbsp;<?=($arrayData["tieu_de"])?><br />
          </font></td>
        </tr>
        <tr>
          <td colspan="2"><font color="#000000">&nbsp; </font><font size='4' color="#FF0000">&nbsp;
          </font><font color="#000000">&nbsp;  </font><strong><font size='2' face='Verdana, Arial, Helvetica, sans-serif'><br /> &nbsp;<?=$arrayData['tom_tat']?></font></strong></td>
        </tr>
		<tr>
		  <td colspan="3"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?=($arrayData["noi_dung"])?><br /></td>
	    </tr>
		<tr>
          <td colspan="2" style="text-align:right"><font color="#000066" size='2' face='Verdana, Arial, Helvetica, sans-serif'>
          Theo: <?=$arrayData["nguon_tin"]?>
          </font><font color="#000000">&nbsp;&nbsp; </font></td>
        </tr>
		<tr>
		  <td colspan="3"><div align="justify"><table width="100%"  border="0">
              <tr>
                <td><a class="thanh_link1" href="#<?=$ulr."Edit"?>&curPg=<?=CM_getParameter("curPg")?>&id=<? echo $arrayData['id'];?>" onclick="return edit('<?php echo $id ;?>');"><img   title=Change height=16 alt=Change hspace=2   src="../images/Edit.gif" width=16 border=0>Sửa</a></td>
                <td><div align="right">
				<a class="thanh_link1" href="#<? echo $ulr."list&curPg=".CM_getParameter("curPg");?>"onclick="return list('<?php echo $id ;?>');">[Trở về]</a></div></td>
              </tr>
            </table></div></td>
	    </tr>
<input type=hidden name="<?=ACTION2?>" value="<?=CM_getParameter(ACTION2)?>"> 
<input type=hidden name="textfield" value="<?=CM_getParameter("textfield")?>"> 
<input type=hidden name="section_idS" value="<?=CM_getParameter("section_idS")?>"> 
<input type=hidden name="hien_thiS" value="<?=CM_getParameter("hien_thiS")?>"> 
<input type=hidden name="curPg" >
</form>
</table>
<script language=javascript>
function edit(id){
	var frm  = document.forms["frm"];
	frm.action  = '<?=$ulr?>Edit&id='+id;
	frm.submit();
	return false;
}
function list(id){
	var frm  = document.forms["frm"];
	frm.action  = '<?=$ulr?>list&id='+id;
	frm.submit();
	return false;
}
//  -----------------End ---------------------------->
</script>
<?php
}
?>
